-- register_bonus2
-- created by shuzy
-- 签到奖励+N

return {
    apply = function(prop, baseValue)
        return baseValue + prop[3];
    end,

    desc = function(prop)
        local row = PropM.getRow(prop[1]);
        local desc = row.desc;

        if prop[2] == "gem" then
            desc = string.gsub(desc, "{0}", getLocStr("gem"));
        end

        local value = prop[3];
        desc = string.gsub(desc, "{1}", value);

        return desc;
    end,

    record = function(target, prop, path)
        return false;
    end
};